package model;

/**
 * This Class is a Customer Complaint Model which Saves Complaints Details for Customer  .
 * @author Tal
 *
 */
public class Complaint 
{
	private int cid;
	private int comid;
	private String details;
	private int status;
	
	/**
	 * This is Complaint constructor.
	 * @param cid is a Customer ID.
	 * @param comid is a Customer Compliant ID.
	 * @param details is a Complaint Details .
	 * @param status is a Complaint status.
	 */
	
	public Complaint(int cid, int comid, String details, int status)
	{
		this.cid=cid;
		this.comid=comid;
		this.details=details;
		this.status=status;
	
	}
	
	
	/**
	 * This method returns customer id of complaint.
	 * @return int type.
	 */
		public int getCID() {
			return this.cid;
		}

	/**
	 * This method sets new customer id to customer in complaint.
	 * @param cid - new cus's Id.
	 */
		public void setCID(int cusID) {
			this.cid = cusID;
		}


	/**
	 * This method returns complaint ID.
	 * @return int type.
	 */
		public int getComID() {
			return this.comid;
		}

	/**
	 * This method sets new complaint id to complaint.
	 * @param comid - new com's Id.
	 */
		public void setComID(int complaintID) {
			this.comid = complaintID;
		}

			
	/**
	 * This method returns complaint details.
	 * @return String type.
	 */
		public String getDetails() {
			return this.details;
		}

	/**
	 * This method sets new complaint details in complaint.
	 * @param details - new complaint Details.
	 */
		public void setDetails(String compDet) {
			this.details = compDet;
		}
				
	/**
	  * This method returns status of complaint.
	  * @return int type.
	 */
		public int getStatus() {
			return this.status;
		}

	/**
	  * This method sets new status to complaint.
	  * @param status - new complaint status .
	  */
    	public void setStatus(int comstatus) {
		this.status = comstatus;
	    }

}
